import React, { Component } from 'react'
import PubSub from "pubsub-js";
import Child from './Child';

export default class A extends Component {
    render() {
        return (
            <div>
                <div>A</div>
                <button onClick={()=> {
                    PubSub.publish('one', 1)
                }}>A-发送消息</button>
                <Child></Child>
            </div>

        )
    }
}
